<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script src="../js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="test">
			<p>{{ msg }}</p>
			<div v-html="msg + '哈哈哈哈'"></div>
			<div v-text="msg"></div>
			<input type="button" :title="btn" v-on:click="clicktest" :value="'哈哈' + btn" />
		</div>
		<script>
			var vue = new Vue({
				el:'#test',
				data:{
					msg:'testhshshs',
					btn:'点我点我快点我！',
					num:1
				},
				methods:{
					clicktest(){
						this.btn = '没想到吧？！' + String(this.num);
						this.num++;
					}
				}
			})
		</script>
	</body>
</html>
